<template>
    <div class="cons-item">
        <div class="title">{{ title }}</div>
        <div class="content">
            {{ content ||'加载中...' }}
        </div>
    </div>
</template>

<script>
export default {
    name: 'ConsItem',
    props: {
        title: String,
        content: String | Number
    }
}
</script>

<style lang='scss'>
.cons-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: .44rem;
    border-radius: 5px;
    margin-bottom: .15rem;
    font-size: .16rem;
    background-color: #ffffff;
    border: 1px solid #888787;
    .title {
        width: .9rem;
        height: .44rem;
        color: #C71585;
        text-align: center;
        line-height: .44rem;
        font-weight: 600;
    }

    .content {
        font-size: .16rem;
        color: #666666;
    }
}
</style>
